package cn.com.netedge.iot.frontend.biz.protocol;

import cn.com.netedge.iot.common.enums.ProtocolEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2018-09-12.
 */
@Component
public class ProtocolHandleFactory {

    private static Logger logger = LoggerFactory.getLogger(ProtocolHandleFactory.class);

    @Autowired
    private ProtocolDlt645_07Handle protocolDlmsHandle;
    public AbstractHandle createHandle(short protocol) {
        if(ProtocolEnum.DLT_645_07.getCode() == protocol) {
            return protocolDlmsHandle;
        }
        return null;
    }


}
